home *** CD-ROM | disk | FTP | other *** search
- Path: library.erc.clarkson.edu!rpi!not-for-mail
- From: floydb1@lib108.its.rpi.edu (Barry B Floyd)
- Newsgroups: comp.lang.c++
- Subject: Re: Are ostream.write and istream.read non-reciprocal??
- Date: 8 Jan 1996 14:51:37 -0500
- Organization: Rensselaer Polytechnic Institute, Troy, NY.
- Message-ID: <4crsk9$7u5@lib108.its.rpi.edu>
- References: <60ii536@kbrady.ultranet.com>
- NNTP-Posting-Host: lib108.its.rpi.edu
- X-newsreader: xrn 7.04-beta-11
-
-
- In article <60ii536@kbrady.ultranet.com>, Ken Brady <kbrady@ultranet.com> writes:
-
- stuff deleted...
-
- |> The stream seems to be
- |> doing some sort of string-formatting even though I've specified it as
- |> binary.
- |>
- |> Are ostream.write and istream.read non-reciprocal?? How can I write a
- |> simple array of arbitrarily-valued char without resorting to a slow
- |> loop of put(p[i])??
- |>
-
- If you are doing this on a Unix system I believe there is in effect
- no "binary" for streams. I recall previous postings indicating that
- ios::binary primarily (only?) changes how CR-LF's are handled.
-
- From you posting, this would seem to be the case ( i.e.
- |> The stream seems to be
- |> doing some sort of string-formatting even though I've specified it as
- |> binary.
- )
- --
- +--------------------------------------------------------------------+
- | Barry B. Floyd \\\ floydb1@rpi.edu |
- | RPI Alum. '84 '87 '88 \\\ |
- +--------------------------------------------------------------------+
-